home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1980-01-01 | 640 b | 32 lines |
- 10 ' **********************
- 20 ' ** PAINTING **
- 30 ' **********************
- 40 '
- 50 ' We need lots of stack bytes
- 60 CLEAR ,,3000
- 70 '
- 80 ' Start with a clean slate
- 90 SCREEN 2
- 100 KEY OFF
- 110 GOSUB 260
- 120 CLS
- 130 '
- 140 ' Fill screen with lots of vertical lines
- 150 FOR X = 1 TO 640 STEP 2
- 160 LINE (X,200*RND)-(X,200*RND)
- 170 NEXT X
- 180 '
- 190 ' Get the paint brush out
- 200 PAINT (320,100)
- 210 '
- 220 ' One more time
- 230 RUN
- 240 '
- 250 ' Subroutine, thoroughly randomize the random numbers
- 260 RANDOMIZE VAL(MID$(TIME$,4,2) + RIGHT$(TIME$,2))
- 270 TEMP$ = TIME$
- 280 WHILE TEMP$ = TIME$
- 290 RANDOMIZE 65000 * RND - 32500
- 300 WEND
- 310 RETURN
-